﻿using DTO.Authorization;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace DAO.IAuthorizationDAO
{
    interface IAuthorityDAO
    {
        bool Insert(AuthorityDTO authority);
        bool DeleteByUserId(String userId);
        bool DeleteByRoleId(String roleId);
        bool UpdateByParam(AuthorityDTO authority, bool active);
        DataTable GetRoleIdByUserId(String userId);
        DataTable GetUserIdByRoleId(String roleId);
        DataTable GetAll();
    }
}
